export const bugLevelOption = [
  {value: 1, label: "低危"},
  {value: 2, label: "中危"},
  {value: 3, label: "高危"},
]

export const appOption = [
  {value: 1, label: "runtime"},
  {value: 2, label: "core-api-java"},
  {value: 3, label: "crystal-java-3"},
  {value: 4, label: "orchsym-web-3"},
  {value: 5, label: "hd-cfg-api"},
  {value: 6, label: "keycloak"},
  {value: 7, label: "elasticsearch"},
  {value: 8, label: "kibana"},
  {value: 9, label: "grafana"},
  {value: 10, label: "nginx"},
  {value: 11, label: "zookeeper"},
  {value: 12, label: "cassandra"},
  {value: 13, label: "mysql"},
  {value: 14, label: "redis"},
  {value: 15, label: "keepalived"},
  {value: 100, label: "其他"},
]

export const bugStatusOption = [
  {value: 1, label: "已修复"},
  {value: 2, label: "待修复"},
]

export const tooltipInfo = {
  verifyInfo: "eg: 版本比对检测原理：检查当前系统中Jackson-databind版本是否在受影响版本范围内|版本比对检测结果：\n" +
    "- jackson-databind\n" +
    "  当前安装版本：2.8.9\n" +
    "  应用相关信息：\n" +
    "  - 进程PID：491235\n" +
    "  - 应用路径：/usr/local/keycloak-4.3.0.Final/modules/system/layers/base/com/fasterxml/jackson/core/jackson-databind/main/jackson-databind-2.8.9.jar\n" +
    "该主机存在此漏洞",
  bugDesc: "eg: Jackson是美国FasterXML公司的一款适用于Java的数据处理工具。jackson-databind是其中的一个具有数据绑定功能的组件。\n" +
    "jackson-databind存在反序列化远程代码执行漏洞，该漏洞是由于javax.swing.JTextPane/javax.swing.JEditorPane组件库存在不安全的反序列化，导致攻击者可以利用漏洞实现远程代码执行。",
  fixSuggest: "eg: 将 Jackson-databind 升级到 2.6.7.5、2.9.10.7、2.10 及以上版本，下载地址：\n" +
    "https://github.com/FasterXML/jackson-databind/releases\n" +
    "https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind"
}
